package com.zmovie.front.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 挚爱之夕
 * @version 1.0
 * @implSpec com.zmovie.admin.config
 * @since 2023-12-01 21:18
 */
@Configuration
public class ResourcesConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        /* 通过url访问项目外的目录图片*/
        registry.addResourceHandler("/cert/**").addResourceLocations("file:/E:/zmovie/");
    }
}